export default {
  get UserToken () {
    return localStorage.getItem('token')
  },
  set UserToken (value) {
    localStorage.setItem('token', value)
  },
  get userName () {
    return localStorage.getItem('userName')
  },
  set userName (value) {
    localStorage.setItem('userName', value)
  },
  get password () {
    return localStorage.getItem('password')
  },
  set password (value) {
    localStorage.setItem('password', value)
  },
  get userId () {
    return localStorage.getItem('userId')
  },
  set userId (value) {
    localStorage.setItem('userId', value)
  },
  set newsEditorState (value) {
    localStorage.setItem('newsEditor', value)
  },
  get getNewsEditorState () {
    return localStorage.getItem('newsEditor', false)
  },
  set menuIndex (value) {
    localStorage.setItem('menuIndex', value)
  },
  get menuIndex () {
    return localStorage.getItem('menuIndex', '/homePage')
  },
  set menuState (value) {
    localStorage.setItem('menuState', value)
  },
  get menuState () {
    return localStorage.getItem('menuState')
  },
  /* 导航菜单是否折叠 */
  isSidebarNavCollapse: false,
  /* 面包屑导航列表 */
  crumbList: [],
}
